package com.project.hqshorttaxi.service;

import com.project.hqshorttaxi.dto.MenuDto;
import com.project.hqshorttaxi.dto.RoleMenuDto;
import com.project.hqshorttaxi.dto.RoleMenuParam;
import com.project.hqshorttaxi.entity.RoleMenu;

import java.util.List;

public interface RoleMenuService {

    List<RoleMenu> getByMenuId(Integer menuId);

    List<RoleMenu> getByRoleId(Integer roleId);

    void insert(RoleMenu entity) throws Exception;

    void update(RoleMenu entity) throws Exception;

    List<RoleMenuDto> getMenuByRoleId(RoleMenuParam param);
}
